package cn.edu.nju.software.action.book;

import cn.edu.nju.software.bean.storage.Book;
import cn.edu.nju.software.service.intf.BookService;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class ModifyBookAction extends ActionSupport {
	
	private Book book;
	private BookService bookService;
	
	public Book getBook() {
		return book;
	}

	public void setBook(Book book) {
		this.book = book;
	}
	
	public void setBookService(BookService bookService) {
		this.bookService = bookService;
	}
	
	@Override
	public String execute() throws Exception {
		bookService.modifyBookInfo(book);
		return SUCCESS;
	}

}
